package org.eiahe.hr.attendance.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

/**
 * 年假规则表
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_annual_leave_rule")
public class AnnualLeaveRule extends BaseEntity {

    /**
     * 规则ID
     */
    @TableId(value = "rule_id", type = IdType.AUTO)
    private Long ruleId;

    /**
     * 规则名称
     */
    private String ruleName;

    /**
     * 最小工龄(年)
     */
    private Integer minWorkYears;

    /**
     * 最大工龄(年,空表示不限)
     */
    private Integer maxWorkYears;

    /**
     * 年假天数
     */
    private Integer leaveDays;

    /**
     * 是否生效(0否 1是,仅1条可生效)
     */
    private String isActive;

    /**
     * 状态(0正常 1停用)
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    @TableLogic
    private String delFlag;
}
